<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});
//Route::get('hello/:name', 'index/hello')->middleware([\app\middleware\Check::class]);
//Route::get('hello', 'index/hello');


//登录
Route::group('login/', function() {
    Route::post('login', 'admin/Login/login');//登录
    Route::post('savePwd', 'admin/Login/savePwd');//修改密码
});

//公共接口    http://tq.sign.io/admin/public/allFeed
Route::group('public/', function() {
    //Route::post('allFeedMarket', 'admin/Public/allFeedMarket');//示例；
    Route::post('roleList', 'admin/Public/roleList');//角色列表
});

/**********************************用户管理**********************************/


//单位管理
Route::group('company/', function() {

});

//管理员   
Route::group('admin/', function() {
    Route::post('adminList', 'admin/Admin/adminList');//管理员列表
    Route::post('editAdminPwd', 'admin/Admin/editAdminPwd');//重置管理员密码
    Route::post('delAdmin', 'admin/Admin/delAdmin');//删除管理员
    Route::post('editStatus', 'admin/Admin/editStatus');//启用禁用管理员
    Route::post('editAdmin', 'admin/Admin/editAdmin');//编辑管理员
    Route::post('addAdmin', 'admin/Admin/addAdmin');//添加管理员
});


/**********************************题目管理**********************************/

//题目    
Route::group('topic/', function() {
    Route::post('addTopic', 'admin/Topic/addTopic');//添加题目
    Route::post('editTopic', 'admin/Topic/editTopic');//编辑题目
    Route::post('delTopic', 'admin/Topic/delTopic');//删除题目
    Route::post('topicDetail', 'admin/Topic/topicDetail');//题目详情
    Route::post('topicList', 'admin/Topic/topicList');//题目列表
});


/**********************************测评报告**********************************/

//测评报告
Route::group('answer/', function() {

});

/**********************************系统设置**********************************/

//字典管理
Route::group('dictionary/', function() {
    Route::post('dictionaryList', 'admin/Dictionary/dictionaryList');//字典列表；
    Route::post('addDictionary', 'admin/Dictionary/addDictionary');//添加字典；
    Route::post('editDictionary', 'admin/Dictionary/editDictionary');//编辑字典；
    Route::post('delDictionary', 'admin/Dictionary/delDictionary');//删除字典；
});

//版本管理    http://tq.sign.io/admin/version/versionList
Route::group('version/', function() {
    Route::post('versionList', 'admin/Version/versionList');//版本更新列表
    Route::post('addVersion', 'admin/Version/addVersion');//新增版本更新
    Route::post('saveVersion', 'admin/Version/saveVersion');//编辑版本更新
    Route::post('delVersion', 'admin/Version/delVersion');//删除版本更新
    Route::post('versionDetail', 'admin/Version/versionDetail');//版本详情
});

//意见反馈
Route::group('opinion/', function() {
    Route::post('opinionList', 'admin/Opinion/opinionList');//意见反馈
    Route::post('handleOpinion', 'admin/Opinion/handleOpinion');//处理意见反馈
});


/**********************************权限管理**********************************/

//菜单管理
Route::group('menu/', function() {
    Route::post('menuList', 'admin/Menu/menuList');//菜单列表
    Route::post('Addmenu', 'admin/Menu/Addmenu');//添加菜单
    Route::post('saveMenu', 'admin/Menu/saveMenu');//编辑菜单
    Route::post('delMenu', 'admin/Menu/delMenu');//删除菜单
});

//角色管理
Route::group('role/', function() {
    Route::post('roleList', 'admin/Role/roleList');//角色列表
    Route::post('addRole', 'admin/Role/addRole');//添加角色
    Route::post('saveRole', 'admin/Role/saveRole');//编辑角色
    Route::post('delRole', 'admin/Role/delRole');//删除角色
    Route::post('roleMenu', 'admin/Role/roleMenu');//菜单权限
});







































